Next | Prev | Up | Top | Contents | Index

Commands to Display Process Information

The commands summarized in Table 11-7 are concerned with displaying the status of processes. Processes are recorded in an array of "slots." The plist command gives the process slot number for a given process ID. The other commands take slot numbers.

Commands to Display Process Information
CommandOperation
eframe [ addr | slot ] Diplay the contents of an exception frame. With no argument, displays the last exception taken for the current process. Else displays the exception associated with the process specified either by address (negative number) or process table slot number (positive number)
pchain slot Display the slot numbers of sibling processes to the process in slot.
plist [ 0 | pid ] With no argument, displays a one-line summary of every active process slot, including slot number and process ID. When the argument is 0, displays all inactive process slots. With a nonzero PID, displays the slot containing that process.
ptree [ addr | pid ]With a pid (number greater than zero), finds the process structure for that process. Else uses the process structure at addr. Displays the command name and command arguments for that process and for all processes that descend from it.
proc [ addr | slot ] Display all the fields of a process structure specified either by address (negative number) or process table slot number (positive number).
signal [ addr | slot ] Display information about pending signals for the process specified either by address (negative number) or process table slot number (positive number)
slpproc [ -2 | -4 | -8 ]Displays a summary of all processes with p_stat of SSLEEP or SXBRK. When an argument is given, its absolute value is used as a mask: 2 ignores processes in wait(); 4 ignores processes without upages; 8 ignores processes on a sleep semaphore.
ubt slot Display a backtrace of the call stack of the sleeping process in the specified slot.
user [ addr | slot ]Display the user area associated with the process specified either by address (negative number) or process table slot number (positive number)


Next | Prev | Up | Top | Contents | Index